package com.kx.game.center.platform;

import java.util.List;

import com.kx.game.center.common.enums.IndexedEnum;
import com.kx.game.center.utils.EnumUtil;

public enum BigPlatformType implements IndexedEnum {
	WEB(0),
	GOOGLE_PLAY(1),
	CHINA_ANRDOID(2),
	;
	private final int index;
	
	/**
	 * 按索引顺序存放的枚举数组
	 */
	private static final List<BigPlatformType> indexes = IndexedEnum.IndexedEnumUtil
			.toIndexes(BigPlatformType.values());

	BigPlatformType(int index) {
		this.index = index;
	}

	public static BigPlatformType indexOf(final int index) {
		return EnumUtil.valueOf(indexes, index);
	}

	@Override
	public int getIndex() {
		return index;
	}
	
}
